package com.xcf.service.business.entities.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.entities.EntityMaintainService;
import com.xcf.util.PageData;
@Service("EntityMaintainServiceImpl")
public class EntityMaintainServiceImpl implements EntityMaintainService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	public List<PageData> findEntityMaintainInfo(PageData pd) throws Exception {
		
		return (List<PageData>)dao.findForList("EntityMaintain.findEntityMaintain", pd);
	}
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findContractInfo(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>)dao.findForList("EntityMaintain.findContractInfo", pd);
	}
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findInvoiceTitle(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>)dao.findForList("EntityMaintain.findInvoiceTitle", pd);
	}
	@Override
	public void saveEntityMaintain(PageData pd) throws Exception {
		dao.save("EntityMaintain.saveEntity", pd);
		
	}
	@Override
	public void deleteEntityMaintain(PageData pd) throws Exception {
		dao.delete("EntityMaintain.deleteEntityMaintain", pd);
		
	}
	@Override
	public void updateEntityMaintain(PageData pd) throws Exception {
		dao.update("EntityMaintain.updateEntityMaintain", pd);
		
	}
	@Override
	public void saveContractInfo(PageData pd) throws Exception {
		dao.save("EntityMaintain.saveContract", pd);
		
	}
	@Override
	public void updateContractInfo(PageData pd) throws Exception {
		dao.update("EntityMaintain.updateContract", pd);
		
	}
	@Override
	public void deleteContractInfo(PageData pd) throws Exception {
		dao.delete("EntityMaintain.deleteContract", pd);
		
	}
	@Override
	public void deleteInfo(PageData pd) throws Exception {
		dao.delete("EntityMaintain.deleteVoice", pd);
		
	}
	@Override
	public void saveInfo(PageData pd) throws Exception {
		dao.save("EntityMaintain.saveVoice", pd);
		
	}
	@Override
	public void updateInfo(PageData pd) throws Exception {
		dao.update("EntityMaintain.updateVoice", pd);
		
	}

}
